<?php
include_once "inc/config.php";
include_once "inc/config_db.php";
include_once "inc/linb.php";
include_once "inc/template.php";
$location=Location('index','');
define('IN' , true);
$tpl_refresh_time =  $skincache;
$tpl_default_dir =  dirname(__FILE__)."/templates/".$skindir."";
$t = new template;
$t->tpl_default_dir = $tpl_default_dir;
$t->tpl_refresh_time = $tpl_refresh_time;

if($webmode!="php" && $indexhtml=="")
{
	$html_file="index.".$webmode;
	echo "<script language=javascript>window.location='".$html_file."'</script>";
}
else {
	include $t->tpl('index');
}
?>